package com.wwj.gulimail.product;

import com.wwj.gulimail.product.entity.BrandEntity;
import com.wwj.gulimail.product.service.BrandService;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * 整合MyBatis-Plus
 * <dependency>
 *      <groupId>com.baomidou</groupId>
 *      <artifactId>mybatis-plus-boot-starter</artifactId>
 *      <version>3.2.0</version>
 * </dependency>
 *
 * 然后配置数据源、配置MyBatis-Plus
 */
@EnableDiscoveryClient
@MapperScan("com.wwj.gulimail.product.dao")     // 扫描Mapper接口
@SpringBootApplication
public class GulimailProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimailProductApplication.class, args);
    }
}
